﻿namespace Gonte.Web.Json
{
    /// <summary>
    /// Contains information about a column of the grid
    /// </summary>
    public class JsonGridColumnInfo
        : JsonFieldInfo // Needed for the JSON reader
    {
        /// <summary>
        /// The header of the column
        /// </summary>
        public string header { get; set; }

        /// <summary>
        /// Maps the column to the specific data field in the data store
        /// </summary>
        public string dataIndex { get; set; }

        /// <summary>
        /// The width of the field in pixels
        /// </summary>
        public int width { get; set; }

        /// <summary>
        /// The editor configuration object
        /// </summary>
        public object editor { get; set; }
    }
}
